import { axios } from '@choerodon/master';
// 查看日志
function checkLog(projectId:string, id:string) {
  return axios.get(`/devops/v1/projects/${projectId}/pipeline_job_records/${id}/log`);
}
// 校验stage、job审核状态是否改变
function checkStaus(projectId:string, id:string) {
  return axios.post(`/devops/v1/projects/${projectId}/pipeline_job_records/${id}/check_audit_status`);
}
// 人工审核
function persionCheck(projectId:string, id:string, result:any) {
  return axios.post(`/devops/v1/projects/${projectId}/pipeline_job_records/${id}/audit? result=${result}`);
}
export {
  checkLog,
  persionCheck,
  checkStaus,
};
